package sia.knights;

/**
 * Created by Temp on 2017/9/15.
 */
public class BraveKnight implements Knight {

    private Quest quest;
    private Minstrel minstrel;

    //注入quest接口
    public BraveKnight(Quest quest) {
        this.quest = quest;
    }

    public BraveKnight(Quest quest, Minstrel minstrel) {
        this.quest = quest;
        this.minstrel = minstrel;
    }
    public void embarkOnQuest1() {
        minstrel.singBeforeQuest();
        quest.embark();
        minstrel.singAfterQuest();
    }

    public void embarkOnQuest() {
        quest.embark();
    }
}
